import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import user from './modules/user'
// import chat from './modules/chat'
import contact from './modules/contact.js'
import socket from './modules/socket'
import chatList from './modules/chat_list'
import chatHistory from './modules/chat_history'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    user,
    chatList,
    chatHistory,
    contact,
    socket
  },
  getters
})
export default store
